home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / boss_c.arc / PEEK.C < prev    next >
Text File  |  1987-06-04  |  268b  |  20 lines

  1. /*
  2. ** Peek for BOSSDEMO (Microsoft C, Borland)
  3. **
  4. ** MSC /Ze peek
  5. **
  6. */
  7.  
  8. unsigned peek(iseg,ioff)
  9. unsigned iseg,ioff;
  10. {
  11. int far *adr;
  12. unsigned long seg,off;
  13.   seg=iseg;
  14.   off=ioff;
  15.   adr = (seg << 16) | off;
  16.   return (unsigned)(*adr);
  17. }
  18.  
  19. /* End */
  20.